package edu.yuhf.pac;
		//生产者
public class Producer extends Thread {
		private int num;
		private Storage stor;
		public Producer(int num,Storage stor) {
			this.num=num;
			this.stor=stor;
			
		}
		public void run() {
			stor.produce(num);
		}
		public int getNum() {
			return num;
		}
		public void setNum(int num) {
			this.num = num;
		}
		public Storage getStor() {
			return stor;
		}
		public void setStor(Storage stor) {
			this.stor = stor;
		}
		
}
